package v1

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"server/internal/model"
	"server/pkg/app"
)

func ListHisTask(c *gin.Context) {
	pages := &app.Page{}
	pages.Info(c)
	histask := &model.HisTask{}
	histask_list, total := histask.List(pages)

	c.JSON(http.StatusOK, gin.H{
		"total": total,
		"data":  histask_list,
	})
}
